LocalAudioStreamState enum Null safety

本地音频流状态,及在 LocalAudioStreamError 中对应的错误码

Constants

encoding → const LocalAudioStreamState

本地音频首帧编码成功。

音频首帧编码成功时回调该状态,对应错误码 ok

const LocalAudioStreamState(2)
failed → const LocalAudioStreamState

本地音频启动失败,在以下时机回调该状态:

  • 本地录音设备启动失败,对应错误码 recordFailure
  • 检测到没有录音设备权限,对应错误码 deviceNoPermission
  • 音频编码失败,对应错误码 encodeFailure
const LocalAudioStreamState(3)
recording → const LocalAudioStreamState

本地音频录制设备启动成功

采集到音频首帧时回调该状态,对应错误码 ok

const LocalAudioStreamState(1)
stopped → const LocalAudioStreamState

本地音频默认初始状态

麦克风停止工作时回调该状态,对应错误码 ok

const LocalAudioStreamState(0)
values → const List<LocalAudioStreamState>

A constant List of the values in this enum, in order of their declaration.

const List<LocalAudioStreamState>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited